package com.wechat.scheme.entity.model;


import com.wechat.scheme.entity.base.BaseEntity;
import lombok.*;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WxButtonMo extends BaseEntity {
    private String sourceAppId;
    private String type;
    private String btName;
    private String btKey;
    private String url;
    private String mediaId;
    private String appid;
    private String pagepath;
    private String pid;
    private List<WxButtonMo> subButtons = new ArrayList();
    @Transient
    public List<WxButtonMo> getSubButtons() {
        return subButtons;
    }
}
